import { request } from './request.js'

export function GetWechatSessionApi(params) {
  return request({
    method: 'Get',
    url: `/public/users/wechat/session?jsCode=${params.jsCode}`
  });
}

export function UserLoginStatus(params) {
  return request({
    method: 'Get',
    url: `/public/users/userLoginStatus?openId=${params.openId}`
  });
}

export function Login(params) {
  return request({
    method: 'Post',
    url: `/public/users/login`,
    data: params
  });
}